-- 获取炼金工坊工人售价

return function(hasNum, num)
    local i, money = 0, 0;

    for i = 1, num do
        if hasNum < 2 then
            money = money + hasNum * 50;
        elseif hasNum < 11 then
            money = money + hasNum * 100 - 100;
        elseif hasNum < 20 then
            money = money + hasNum * 1000 - 10000;
        elseif hasNum < 29 then
            money = money + hasNum * 10000 - 190000;
        elseif hasNum < 34 then
            money = money + hasNum * 20000 - 480000;
        elseif hasNum < 50 then
            money = money + hasNum * 50000 - 1500000;
        else
            money = money + 1000000;

        hasNum = hasNum + 1;
        end
    end

    return money;
end
